﻿using Sasc.PV.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sasc.PV.BLL
{
    /*
     * 一个车间的几个要素：
     * 1. 基本工序列表
     * 2. 返工工序
     * 3. 车间工序记录（保存工序的公用的基本信息）
     */
    /// <summary>
    /// 车间接口
    /// </summary>
    public interface ICheJianManagement
    {
        string CheJianName { get; }
        string GetCheJianRecTableName();
        //ICheJianFanGong<T> CreateFanGong<T>(ICheJianGongXu<T> gongXu)
        //    where T : class, ICheJianManagement;
        //void SaveGongXu<T>(ICheJianGongXu<T> gongXu)
        //    where T : class, ICheJianManagement;
        //void MoveToNextGongXu<T>(ICheJianGongXu<T> gongXu)
        //    where T : class, ICheJianManagement;
        //ICheJianGongXuRec CreateGongXuRec();
    }

    /// <summary>
    /// 指定车间工序记录格式的车间泛型接口
    /// </summary>
    /// <typeparam name="TCheJianGongXuTarget">车间工序对象泛型参数</typeparam>
    public interface ICheJianManagement<TCheJianGongXuTarget> : ICheJianManagement
        where TCheJianGongXuTarget : class, ICheJianGongXuTarget
    {
    }
}
